package cn.echase.ecare.yinfayun.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 机构员工附件表
 *
 * @auther jiangyilong
 * @date 2025-05-12 10:29
 * @description 机构员工附件表
 */
@Data
@TableName(value = "t_staff_protocol")
public class StaffProtocol extends TenantEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 物理主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 部门id
     */
    @TableField(value = "dept_id")
    private Long deptId;

    /**
     * 逻辑主键
     */
    @TableField(value = "staff_protocol_id")
    private String staffProtocolId;

    /**
     * 员工id
     */
    @TableField(value = "staff_id")
    private String staffId;

    /**
     * 附件类型，0：资格证书，1：学历证书，2：其他证书
     */
    @TableField(value = "protocol_type")
    private Integer protocolType;

    /**
     * 附件路径
     */
    @TableField(value = "protocol_path")
    private String protocolPath;

    /**
     * 文件原名
     */
    @TableField(value = "original_name")
    private String originalName;

    /**
     * 文件类型
     */
    @TableField(value = "file_type")
    private String fileType;

    /**
     * 是否删除，0：已删除，1：未删除
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;
}